package com.citycloud.ccuap.tc.admin.entity;


import com.citycloud.ccuap.framework.service.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;

/**
 * 数据角色关联表实体对象
 * @author sufeng
 *
 */
@Data
@NoArgsConstructor
@Entity(table = "sys_project_dg_role_rel")
public class SysProjectDgRoleRel implements Model {
	private static final long serialVersionUID = 1L;

	@Id(strategy = GenerationType.UUID)
	@Column(name = "obj_id")
	@Condition
	private String objId;

	@Column(name = "role_id")
	@Condition
	private Long roleId;
	
	@Column(name = "datagroup_id")
	@Condition
	private String datagroupId;
	


}